<template>
  <header class="header-box">
    <div class="left">
      <div class="time">
        <span>25</span>
        <span>十月</span>
      </div>
      <h1 class="title">知乎日报</h1>
    </div>
    <router-link to="/person" class="link-btn">
      <img src="../assets/timg.jpg" alt="" />
    </router-link>
  </header>
</template>

<script>
import { reactive, computed} from "vue";

export default {
    props:{
        time:{
            type:String,
            default:'',
        },
    },
    setup(props) {
        let timeNow = computed(() => {
            let time = props.time || new Date()

        })

    }
};
</script>

<style lang='less' scoped>
.header-box {

    display: flex;
    justify-content: space-between;
    align-content: center;
    padding:  10px 15px;
    z-index: 9;

    .left{
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }
    .time{
        padding-right: 15px;
        border-right: 1px solid #ddd;
    }

    span{
        display: block;
        height: 20px;
        line-height: 20px;
        font-size: 20px;
        text-align: center;

        &:nth-child(2) {
            height: 15px;
            line-height: 15px;
            font-size: 12px;
        }

    }

    .title {
        padding-left: 10px;
        font-size: 22px;
    }

    .link-btn {
        box-sizing: border-box;
        width: 30px;
        height: 30px;
    }

    img{
        display: block;
        height: 100%;
        width:100%;
        border-radius: 50%;
        
    }
}
</style>
